package com.happy.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;

/**
 * @Author: Wuzh
 * @Description: 抽象基础类, 所有entity的基类，用于传参
 * @Data:
 */
@Data
public abstract class BaseEntity implements Serializable {


    /**
     * 页码
     */
    @TableField (exist = false)
    private int pageNum;

    /**
     * 每页条数
     */
    @TableField (exist = false)
    private int pageSize = 10;


    /**
     * 返回给前端的token，不存数据库
     */
    @TableField (exist = false)
    private String token;



    public int getPageNum () {
        return this.pageNum;
    }

    public void setPageNum (int pageNum) {
        this.pageNum = pageNum;
    }

    public int getPageSize () {
        return this.pageSize;
    }

    public void setPageSize (int pageSize) {
        this.pageSize = pageSize;
    }

    public String getToken () {
        return token;
    }

    public void setToken (String token) {
        this.token = token;
    }
}